<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>点击事件</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <!-- <div id="app">
        <p>{{msg}}</p>
        <input type="text" v-model.lazy="msg" />
    </div> -->
    <input type="text" id="textId"></input>
</body>
<script>
    // let vm = new Vue({
    //     el : "#app",
    //     data : {
    //         msg : "this is msg"
    //     }
    // })
    function keyDownFun(e)  {   
        console.log(e.keyCode)
    }    
    window.onkeydown = keyDownFun;
</script>
</html>